package com.tllq.zhongkang.entity;

import com.baomidou.mybatisplus.annotation.KeySequence;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;
@Data
@KeySequence(value = "GRESA_COUPON_MANAGER_SEQ",clazz = Long.class)
public class Coupon implements Serializable {
    private static final long serialVersionUID = -7219559686176183068L;
    @TableId
    private Long couponmanagid;

    private String title;
    private Integer cardNo;
    private Integer mobile;
    private String detailSequence;
    private Integer apprangeid;
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Long startValidateDate;
//    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
//    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")

    private Long endValidateDate;

    @TableField(exist = false)
    private Integer conditionConsume;

    @TableField(exist = false)
    private Integer typeValue;


}
